﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="description" content="" />
    <meta name="author" content="" />

    <title>Test Page</title>

    <!-- Bootstrap Core CSS -->
    <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" />
    <script src="js/jquery-2.1.4.js"></script>
    <script src="js/jquery.validate.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

    <!-- Custom Fonts -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css' />
    <link href='http://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css' />
    <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css" type="text/css" />

    <!-- Plugin CSS -->
    <link rel="stylesheet" href="css/animate.min.css" type="text/css" />
    <link href="css/bootstrap.css" rel="stylesheet" />

    <!-- Custom CSS -->
    <link rel="stylesheet" href="css/creative.css" type="text/css" />
    <link href="css/TestModal.css" rel="stylesheet" />

    <!-- Custom JS -->
    <script src="js/Person.js"></script>
    <!--<script src="js/Expense.js"></script>-->
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body id="page-top">
    <nav id="mainNav" class="navbar navbar-default navbar-fixed-top">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand page-scroll" href="#page-top">Expense</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <!--    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a class="page-scroll" href="#about">About</a>
                    </li>
                    <li>
                        <a class="page-scroll" href="#services">Services</a>
                    </li>
                    <li>
                        <a class="page-scroll" href="#portfolio">Portfolio</a>
                    </li>
                    <li>
                        <a class="page-scroll" href="#contact">Contact</a>
                    </li>
                </ul>
            </div>-->
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container-fluid -->

    </nav>

    <header>
        <div class="header-content">
            <div class="header-content-inner">
                <h1>Start a new expense sheet</h1>
                <hr />
                <p>No more hassle tracking and evening out shared expenses!</p>
                <a href="#person" id="getStarted" class="btn btn-primary btn-xl page-scroll">Get Started</a>

            </div>
        </div>
    </header>

    <section class="bg-primary" id="person">
        <div id="mainContainer" class="container">
            <div class="row">
                <div id="mainRow" class="col-lg-8 col-lg-offset-2 text-center">
                    <h1>Create Group</h1>
                    <hr class="light" />
                    <p>
                        Please enter the list of persons who are sharing expenses: Click «Add Person» to get started.
                        Once you have entered at least 2 persons, click «Enter Expenses» to start entering shared expenses.
                    </p>
                    <div class="bs-example">
                        <table id="personTable" class="table table-bordered">
                            <thead>
                            </thead>
                            <tbody></tbody>
                        </table>
                    </div>
                    <button id="addPerson" class="btn btn-default btn-xm page-scroll" disabled="disabled">Add Person</button>
                    <a href="#expense" id="enterExpense" class="btn btn-default btn-xm page-scroll" disabled="disabled">Enter Expenses</a>
                    <button id="personDeleteSelected" class="btn btn-default btn-xm page-scroll" disabled="disabled">Delete Selected</button>
                </div>
            </div>
        </div>
    </section>

    <section id="expense">
        <div class="container">
            <div class="row">
                <div id="mainRowNext" class="col-lg-8 col-lg-offset-2 text-center">
                    <h1>Enter Expense</h1>
                    <hr />
                    <div class="bs-example">
                        <table id="expenseTable" class="table table-bordered">
                            <thead>
                            </thead>
                            <tbody></tbody>
                        </table>
                    </div>
                    <button id="addExpense" class="btn btn-primary btn-xm page-scroll" disabled="disabled">Add Expenses</button>
                    <button id="expenseDeleteSelected" class="btn btn-primary btn-xm page-scroll" disabled="disabled">Delete Selected</button>
                    <button id="fixedExpense" class="btn btn-primary btn-xm page-scroll" disabled="disabled">Fixed Expenses</button>
                    <a href="#computePayement" id="computePayment" class="btn btn-primary btn-xm page-scroll" disabled="disabled">Compute Payments</a>
                </div>
            </div>
        </div>
    </section>

    <section class="bg-primary" id="computePayement">
        <div class="container">
            <div class="row">
                <div id="Div1" class="col-lg-8 col-lg-offset-2 text-center">
                    <h1>Payment</h1>
                    <hr class="light" />
                </div>
            </div>
            <div class="row" style="margin: 0 5px 0 5px">
                <div id="Div1" class="col-lg-8 col-lg-offset-2 text-center">
                    <table id="computeExpenseTable" class="table table-bordered">
                        <thead>
                            <tr>
                                <th>Name</th>
                                <th>Expense</th>
                                <th>Total Spent</th>
                                <!--<th>Owes</th>
                                <th>Is Owed</th>-->
                                <th>Balance</th>
                            </tr>
                        </thead>
                        <tfoot>
                        </tfoot>
                        <tbody></tbody>
                    </table>
                    <div class="divrcorners2" style="margin-top: 20px; width: 65%;float:left;">
                        <table id="computePayementTable" style="margin: 0 auto">
                            <tbody></tbody>
                        </table>
                    </div>
                    <div class="divrcorners2" style="margin-top: 20px;margin-left:10px; width: 33%;float:left;">
                        <table  style="text-align:left;width:100%">
                            <thead style="text-align:center">
                                <tr><th colspan="3">Fixed Expense</th></tr>
                            </thead>
                            <tbody class="spacing">
                                <tr>
                                    <td>
                                        Cook
                                    </td>
                                    <td style="padding: 0 10px">-</td>
                                    <td id="ck" style="padding-left: 5px">4000</td>
                                </tr>
                                <tr>
                                    <td>
                                        Maid
                                    </td>
                                    <td style="padding: 0 10px">-</td>
                                    <td id="md" style="padding-left: 5px">1100</td>
                                </tr>
                                <tr>
                                    <td>
                                        House Rent
                                    </td>
                                    <td style="padding: 0 10px">-</td>
                                    <td id="hr" style="padding-left: 5px">15300</td>
                                </tr>
                                <tr class="spacing"></tr>
                                <tr>
                                    <td>
                                        Total
                                    </td>
                                    <td style="padding: 0 10px">-</td>
                                    <td id="ttl" style="padding-left: 5px"></td>
                                </tr>
                                <tr>
                                    <td>
                                        Per Head
                                    </td>
                                    <td style="padding: 0 10px">-</td>
                                    <td id="ph" style="padding-left: 5px"></td>
                                </tr>
                            </tbody>
                            <tbody></tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Modal HTML -->
    <div class="modal fade" id="personModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="vertical-alignment-helper">
            <div class="modal-dialog vertical-align-center">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal">
                            <span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
                        </button>
                        <h4 class="modal-title" id="myModalLabel">New Person</h4>
                    </div>
                    <div class="modelError">
                        <div class="col-lg-8 col-lg-offset-2 text-center">
                            <div id="alertModel" class="alert alert-danger fade in" hidden="hidden">
                            </div>
                        </div>
                    </div>
                    <div class="modal-body">
                        <form role="form" id="form" style="margin-top: 15px" class="form-horizontal">
                            <div class="form-group">
                                <label class="control-label col-xs-3">Person Name:</label>
                                <div class="col-xs-8">
                                    <input class="form-control" id="personName" type="text" />
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="submit" id="saveNextPersonModal" class="btn btn-primary btn-xs">Save & Next</button>&nbsp;&nbsp;&nbsp;
                        <button type="button" id="savePersonModal" class="btn btn-primary btn-xs" data-dismiss="modal">Save</button>
                        <button type="button" id="cancelPersonModal" class="btn btn-info btn-xs" data-dismiss="modal">Cancel</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="modal fade" id="expenseModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="vertical-alignment-helper">
            <div class="modal-dialog vertical-align-center">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal">
                            <span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
                        </button>
                        <h4 class="modal-title" id="H1">New Expense</h4>
                    </div>
                    <div class="modelError">
                        <div class="col-lg-8 col-lg-offset-2 text-center">
                            <div id="expenseAlertModal" class="alert alert-danger fade in" hidden="hidden">
                            </div>
                        </div>
                    </div>
                    <div class="modal-body">
                        <form id="expenseForm" role="form" style="margin-top: 15px" class="form-horizontal">
                            <div class="form-group">
                                <label class="control-label col-xs-3">Who Paid?</label>
                                <div id="whoPaid" class="col-xs-8"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-3">Amount:</label>
                                <div id="whoPaid" class="col-xs-8">
                                    <input class="form-control" id="amount" type="number" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-3">For Whom?</label>
                                <div id="forWhom" class="col-xs-8"></div>
                            </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="submit" id="saveNextExpenseModal" class="btn btn-primary btn-xs">Save & Next</button>&nbsp;&nbsp;&nbsp;
                        <button type="button" id="saveExpenseModal" class="btn btn-primary btn-xs" data-dismiss="modal">Save</button>
                        <button type="button" class="btn btn-info btn-xs" data-dismiss="modal">Cancel</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="modal fade" id="fixedExpenseModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="vertical-alignment-helper">
            <div class="modal-dialog vertical-align-center">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal">
                            <span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
                        </button>
                        <h4 class="modal-title" id="H1">Fixed Expense</h4>
                    </div>
                    <div class="modelError">
                        <div class="col-lg-8 col-lg-offset-2 text-center">
                            <div id="fixedExpenseAlertModal" class="alert alert-danger fade in" hidden="hidden">
                            </div>
                        </div>
                    </div>
                    <div class="modal-body">
                        <form id="expenseForm" role="form" style="margin-top: 15px" class="form-horizontal">
                            <div class="form-group">
                                <label class="control-label col-xs-3">Cook</label>
                                <div class="col-xs-8">
                                    <input class="form-control" id="cook" type="number" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-3">Maid</label>
                                <div class="col-xs-8">
                                    <input class="form-control" id="maid" type="number" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-3">House Rent</label>
                                <div class="col-xs-8">
                                    <input class="form-control" id="houseRent" type="number" />
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" id="saveFixedExpenseModal" class="btn btn-primary btn-xs" data-dismiss="modal">Save</button>
                        <button type="button" class="btn btn-info btn-xs" data-dismiss="modal">Cancel</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- jQuery -->
    <script src="js/jquery.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="js/bootstrap.min.js"></script>

    <!-- Plugin JavaScript -->
    <script src="js/jquery.easing.min.js"></script>
    <script src="js/jquery.fittext.js"></script>
    <script src="js/wow.min.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="js/creative.js"></script>

</body>
</html>
